package model;

import java.io.Serializable;
import java.util.HashMap;

public class Users implements Serializable{
	public static HashMap<Integer,String> user_List;
	
	public Users()
	{
		user_List = new HashMap<Integer,String>();
	}
	
	public String findUserName(int id)
	{
		String name = user_List.get((id));
		return name!=null?name:"";
	}
	
	public void addUser(int id, String name)
	{
		user_List.put(id,name);
	}
	
	public void setName(int id, String name)
	{
		user_List.remove(id);
		addUser(id,name);
	}
}
